Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a span for OpenTelemetry to Prometheus push request conversion in distributors #5539

Merged

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Jul 19, 2023

What this PR does

This PR improves the observability of OTLP write requests in distributors.

We've seen instances where the conversion to Prometheus write request format can take up to a second (which inspired #5531). This PR adds a span with more information so we can more easily diagnose cases like these in the future.

Which issue(s) this PR fixes or relates to

Relates to #5531

Checklist

  • [n/a] Tests updated
  • [n/a] Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@charleskorn charleskorn marked this pull request as ready for review July 19, 2023 07:00
@charleskorn charleskorn requested a review from a team as a code owner July 19, 2023 07:00
Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

pkg/util/push/otel.go Outdated Show resolved Hide resolved
pkg/util/push/otel.go Outdated Show resolved Hide resolved
charleskorn and others added 3 commits July 20, 2023 09:11
Co-authored-by: Peter Štibraný <pstibrany@gmail.com>
…ecode-time-in-distributor-tracing

# Conflicts:
#	CHANGELOG.md
@charleskorn charleskorn enabled auto-merge (squash) July 20, 2023 00:57
@charleskorn charleskorn merged commit bcb6838 into main Jul 20, 2023
@charleskorn charleskorn deleted the charleskorn/include-decode-time-in-distributor-tracing branch July 20, 2023 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants